package de.zefania.api.impl;

import org.w3c.dom.Document;

import de.zefania.api.Caption;
import de.zefania.api.Chapter;
import de.zefania.api.Position;
import de.zefania.api.Vers;

/**
 * this class contains one chapter of a bible modul (implemented as a Document Object)
 * @author Thomas
 *
 */
public class ChapterImpl implements Chapter{
	private int number;
	private int book;
	private Document doc;	
	
	/**
	 * creates a chapter object by 
	 * @param pos
	 * @param doc
	 */
	public ChapterImpl(final PositionImpl pos, final Document doc) {
		this.number = pos.c1();
		this.book = pos.b1();
		this.doc = doc;				
	}
	
	public final int getNumber() {
		return number;
	}
	public final int getBook() {
		return book;
	}
	public final Document getDoc() {
		return doc;
	}
	
	@Override
	public final String toString() {
		return doc.getDocumentElement().getTextContent();
	}

	@Override
	public final int countVerses() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public final String getModulId() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public final Vers[] getVersList() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public final Caption[] getCaptions() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public final Position[] getLinks() {
		// TODO Auto-generated method stub
		return null;
	}
}
